package com.smedi.ismedi.organization.core.port.adapter.service;

import com.smedi.ismedi.organization.core.domain.aggregatemodel.dto.OrganizationAssignmentQuery;
import com.smedi.ismedi.organization.core.domain.aggregatemodel.dto.PersonQuery;
import com.smedi.ismedi.organization.core.domain.aggregatemodel.model.OrganizationAssignment;
import com.smedi.ismedi.organization.core.domain.aggregatemodel.model.Person;
import com.smedi.ismedi.personnel.api.dto.response.resp.OrganizationAssignmentResp;

import java.util.List;

/**
 * @Author: xulinjun
 * @Date: 2021-6-10 20:35
 */
public interface PersonnelRemoteApiService {
    /**
     * 判断行政组织下是否有分配信息存在
     * @param hrOrganizationId
     * @return
     */
    Boolean checkHrOrganizationHasPerson(Long hrOrganizationId);

    /**
     * 人员查询条件
     * @param personQuery
     * @return
     */
    List<Person> getPersonList(PersonQuery personQuery);


    List<OrganizationAssignment> getOrganizationAssignmentListWithoutToken(OrganizationAssignmentQuery organizationAssignmentQuery);
}
